package top.wfzzq.ns;

import top.wfzzq.tds.Node;

public class ndengineDemo {
  public static void main(String[] args) {
	  Node data=new Node(1);
      Node next1=new Node(2);
      Node hen1=new Node(3);
      
      //节点排序
      data.setNext(next1);
      next1.setNext(hen1);
      
      for(Node node=data; node!=null; node=node.getNext()) {
    	  System.out.println(node);
      }
}
       
        
}
